package com.main;

import com.util.Constant;
import com.util.GameUtil;

import java.awt.*;
import java.awt.image.BufferedImage;

public class GameOver {
    //    存放死亡提示图片
    private BufferedImage imgs;
    //    文字初始化位置
    private int x = 200, y = 220;

    //    构造器初始化参数
    public GameOver() {
        imgs = GameUtil.loadBufferedImage(Constant.GAMEOVER_IMG);
    }

    //    绘制图片
    public void draw(Graphics g) {
        g.drawImage(imgs, x, y, null);
    }
}
